All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.table.DefaultTableCellRenderer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JLabel
                                   |
                                   +----com.sun.java.swing.table.DefaultTableCellRenderer

public class DefaultTableCellRenderer
extends JLabel
implements TableCellRenderer, Serializable
The standard class for rendering (displaying) individual cells in a JTable.

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.

See Also:
JTable

Variable Index

 o noFocusBorder

Constructor Index

 o DefaultTableCellRenderer()

Method Index

 o getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int)
 o setBackground(Color)
 o setForeground(Color)
 o setValue(Object)
 o updateUI()
Notification from the UIFactory that the L&F has changed.

Variables

 o noFocusBorder
 protected static Border noFocusBorder

Constructors

 o DefaultTableCellRenderer
 public DefaultTableCellRenderer()

Methods

 o setForeground
 public void setForeground(Color c)
Overrides:
setForeground in class Component
 o setBackground
 public void setBackground(Color c)
Overrides:
setBackground in class Component
 o updateUI
 public void updateUI()
Notification from the UIFactory that the L&F has changed.

Overrides:
updateUI in class JLabel
 o getTableCellRendererComponent
 public Component getTableCellRendererComponent(JTable table,
                                                Object value,
                                                boolean isSelected,
                                                boolean hasFocus,
                                                int row,
                                                int column)
 o setValue
 protected void setValue(Object value)

All Packages  Class Hierarchy  This Package  Previous  Next  Index